package shawn.encryption;

import shawn.projection.LngLatPoint;

public class LLE {

  public LngLatPoint encrypt(LngLatPoint wg) {
    LngLatPoint china = new LngLatPoint();

    china.lng = wg.lng + 0.006206;
    china.lat = wg.lat + 0.001369;
    // china.lng = wg.lng;
    // china.lat = wg.lat;
    return china;
  }

  public LLE() {
    super();
  }

  public static void main(String[] args) {

    LngLatEncryption lle = new LngLatEncryption();
    LngLatPoint wg = new LngLatPoint(116.359701, 39.941962);
    LngLatPoint china = lle.encrypt(wg);

    System.out.println("wg.lng = " + wg.lng);
    System.out.println("wg.lat = " + wg.lat);
    System.out.println("china.lng = " + china.lng);
    System.out.println("china.lat = " + china.lat);
    System.out.println(china.lng - wg.lng);
    System.out.println(china.lat - wg.lat);

  }

}
